package timermaplink;

/**
 *
 * @author Glaucio
 */
public class TimerMapLink {

  public static void main(String args[]) {
    System.out.println("Iniciando Timer MapLink");

    while (true) {
      try {
        Thread.sleep(10000);
        acessar();
      } catch (Exception e) {
        break;
      }
    }

    System.out.println("Fim Timer MapLink");
  }

  private static void acessar() {
    try {
      java.net.URL url = new java.net.URL("http://186.209.138.78/estadao/faces/Atualizar.jsp");
      url.openStream();
    } catch (java.net.MalformedURLException e) {
      System.out.println("Formato Inválido para URL.");
    } catch (java.io.IOException e2) {
      System.out.println("Erro ao criar URL.");
    }
  }
}
